<script setup>
  import { ref } from 'vue'
  function jjh(ev) {
    console.log(ev)
  }

  const money = ref(30)
  const orderId = ref(123123)

  const payPopref = ref(null)

  function onpenPay() {
    payPopref.value.open()
  }

  function onclosepayPopfn() {
    payPopref.value.close()
  }

  const payInfoList = [
    { title: '支付宝支付', thumb: '/static/images/alipay-icon.png' },
    { title: '微信支付', thumb: '/static/images/wechatpay-icon.png' },
  ]
</script>

<template>
  <button @click="onpenPay">dkai</button>
  <custom-payPop
    :payment="money"
    :orderId="orderId"
    :payInfoList="payInfoList"
    @closePayPopfn="onclosepayPopfn"
    ref="payPopref"
  ></custom-payPop>
</template>

<style></style>
